import { port } from './config/setting.js';
import { routes } from './router/index.js';
import { regTemplating } from './render/index.js';
import koa from 'koa';

import bodyParser from 'koa-bodyparser';
import routerMapper from './controller/blogs.js';


const app = new koa();

app.use(regTemplating())
app.use(bodyParser())

app.use(routes());
app.listen(port)
console.log(`http://localhost:${port}`);

